package com.jell.purchase.persistence;

import com.jell.purchase.model.OptNodeInstanceDo;
import com.jell.purchase.model.Query.OptNodeInstanceQuery;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface OptNodeInstanceDao {
    /**
     * p_opt_node_instance
     */
    long countByQuery(OptNodeInstanceQuery example);

    /**
     * p_opt_node_instance
     */
    int deleteByQuery(OptNodeInstanceQuery example);

    /**
     * p_opt_node_instance
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * p_opt_node_instance
     */
    int insert(OptNodeInstanceDo record);

    /**
     * p_opt_node_instance
     */
    int insertSelective(OptNodeInstanceDo record);

    /**
     * p_opt_node_instance
     */
    List<OptNodeInstanceDo> selectByQuery(OptNodeInstanceQuery example);

    /**
     * p_opt_node_instance
     */
    OptNodeInstanceDo selectByPrimaryKey(Integer id);

    /**
     * p_opt_node_instance
     */
    int updateByQuerySelective(@Param("record") OptNodeInstanceDo record, @Param("example") OptNodeInstanceQuery example);

    /**
     * p_opt_node_instance
     */
    int updateByQuery(@Param("record") OptNodeInstanceDo record, @Param("example") OptNodeInstanceQuery example);

    /**
     * p_opt_node_instance
     */
    int updateByPrimaryKeySelective(OptNodeInstanceDo record);

    /**
     * p_opt_node_instance
     */
    int updateByPrimaryKey(OptNodeInstanceDo record);
}